package com.prs.crm.domain.fs;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

@Entity
@Table(name="fs_outlay_item")
public class OutlayItem extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	private String name;
	@OneToMany(fetch = FetchType.LAZY,mappedBy="item")
	private Set<ApplyDetail> applyDetails;
	
	@OneToMany(fetch = FetchType.LAZY,mappedBy="outlayItem")
	private Set<OutlayDetail> outlayDetails;
	
	
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setApplyDetails(Set<ApplyDetail> applyDetails) {
		this.applyDetails = applyDetails;
	}
	public Set<ApplyDetail> getApplyDetails() {
		return applyDetails;
	}
	public void setOutlayDetails(Set<OutlayDetail> outlayDetails) {
		this.outlayDetails = outlayDetails;
	}
	public Set<OutlayDetail> getOutlayDetails() {
		return outlayDetails;
	}
	
}
